<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8">
	<title>个人资料</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="/css/user.css" media="all" />
	<link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_1041315_0zq2yro0cfn.css">
</head>
<body class="childrenBody">
	<form class="layui-form">
		<div class="user_left">
			<div class="layui-form-item">
			    <label class="layui-form-label">登录名</label>
				<input class="layui-hide" name="id" th:value="${userInfo.id}"/>
				<div class="layui-input-block">
			    	<input type="text" name="userName" th:value="${userInfo.userName}" disabled class="layui-input layui-disabled">
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label">真实姓名</label>
			    <div class="layui-input-block">
			    	<input type="text" name="realName" th:value="${userInfo.realName}" placeholder="请输入真实姓名" lay-verify="required" class="layui-input realName">
			    </div>
			</div>
			<div class="layui-form-item" pane="">
			    <label class="layui-form-label">性别</label>
				<div class="layui-input-block" lay-filter="selFilter">
				<select name="sex" lay-verify="required" id="sex" th:field="${userInfo.sex}"  th:value="${userInfo.sex}">
					<option value="">请选择性别</option>
					<option th:selected="${userInfo.sex=='男'}"value="男">男</option>
					<option th:selected="${userInfo.sex=='女'}"value="女">女</option>
					<option th:selected="${userInfo.sex=='保密'}"value="保密">保密</option>
				</select>
				</div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label">年龄</label>
			    <div class="layui-input-block">
			    	<input type="text" name="age" th:value="${userInfo.age}" required  lay-verify="required" placeholder="请输入年龄" class="layui-input" >
			    </div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">手机</label>
				<div class="layui-input-block">
					<input type="text" class="layui-input" name="phone" lay-verify="phone" placeholder="请输入手机号" th:value="${userInfo.phone}">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">生日</label>
				<div class="layui-input-block">
					<input type="text" class="layui-input" name="birthday" id="birthday"  th:value="${#dates.format(userInfo.birthday,'yyyy-MM-dd ')}"  >
				</div>
			</div>
			<div class="layui-form-item userAddress">
			    <label class="layui-form-label">家庭住址</label>
			    <div class="layui-input-inline">
	                <select name="province" lay-filter="province">
	                    <option value="">请选择省</option>
	                </select>
	            </div>
	            <div class="layui-input-inline">
	                <select name="city" lay-filter="city" disabled>
	                    <option value="">请选择市</option>
	                </select>
	            </div>
	            <div class="layui-input-inline">
	                <select name="area" lay-filter="area" disabled>
	                    <option value="">请选择县/区</option>
	                </select>
	            </div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">详细地址</label>
				<div class="layui-input-block">
					<textarea placeholder="请输入乡镇或者街道信息" class="layui-textarea address"></textarea>
				</div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label">兴趣爱好</label>
			    <div class="layui-input-block userHobby">
			    	<input type="checkbox" name="like[javascript]" title="Javascript">
				    <input type="checkbox" name="like[html]" title="HTML(5)">
				    <input type="checkbox" name="like[css]" title="CSS(3)">
				    <input type="checkbox" name="like[php]" title="PHP">
				    <input type="checkbox" name="like[.net]" title=".net">
				    <input type="checkbox" name="like[ASP]" title="ASP">
				    <input type="checkbox" name="like[C#]" title="C#">
				    <input type="checkbox" name="like[Angular]" title="Angular">
				    <input type="checkbox" name="like[VUE]" title="VUE">
				    <input type="checkbox" name="like[XML]" title="XML">
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label">邮箱</label>
			    <div class="layui-input-block">
			    	<input type="text" name="email" th:value="${userInfo.email}"  placeholder="请输入邮箱" lay-verify="required|email" class="layui-input userEmail">
			    </div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label">自我评价</label>
			    <div class="layui-input-block">
			    	<textarea placeholder="请输入内容" class="layui-textarea myself"></textarea>
			    </div>
			</div>
		</div>
		<div class="layui-col-md3 layui-col-xs12 user_right">
			<input type="hidden"  name="image"  th:value="${userInfo.image}" >
			<div class="layui-upload-list">
				<img    th:src="${userInfo.image}"class="layui-circle"  alt="图片"  id="userFace">
			</div>
			<button type="button" class="layui-btn layui-btn-primary userFaceBtn" id="userFaceBtn"><i class="layui-icon">&#xe67c;</i> 掐指一算，我要换一个头像了</button>
		</div>
		<div class="layui-form-item" style="margin-left: 5%;">
		    <div class="layui-input-block">
		    	<button class="layui-btn" lay-submit="" lay-filter="changeUser"><i class="iconfont icon-fabu-"></i>立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary"><i class="iconfont icon-zhongzhi"></i>重置</button>
		    </div>
		</div>
	</form>
	<script type="text/javascript" src="/layui/layui.js"></script>
	<script type="text/javascript" src="/js/common/address.js"></script>
	<script type="text/javascript" src="/js/user/user.js"></script>
</body>
</html>